home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13084 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  815 b 

  1. Path: ix.netcom.com!news
  2. From: pcgpe@ix.netcom.com(Mark Feldman)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Drawing from any procedure
  5. Date: 23 Mar 1996 08:07:04 GMT
  6. Organization: Netcom
  7. Message-ID: <4j0bf8$hos@dfw-ixnews2.ix.netcom.com>
  8. References: <4iuni1$oep@lily.csv.warwick.ac.uk> <4ivse7$3p1@news1.h1.usa.pipeline.com>
  9. NNTP-Posting-Host: chi-il10-16.ix.netcom.com
  10. X-NETCOM-Date: Sat Mar 23  2:07:04 AM CST 1996
  11.  
  12. In <4ivse7$3p1@news1.h1.usa.pipeline.com> grantp@usa.pipeline.com(Pete
  13. Grant) writes: 
  14. >
  15. >> 
  16. >>I am programming in ms Visual C++ v.4.0 under Win95, and am trying to
  17. >>persuade it to allow me to draw graphics to a window from a procedure
  18. >>other than OnPaint or OnDraw. 
  19. >> 
  20. >>I have tried using CPaintDC(this); , but this gives an access
  21. >>violation. 
  22.  
  23. Try CWindowDC dc(this);
  24.  
  25. Cheers,
  26.  
  27. Mark Feldman
  28.  
  29.